{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>书籍信息表</title>
    <link rel="stylesheet" href="{% static 'css/index.css' %}">
</head>
<body>
    <table border="1">
        {#  表头  #}
        <tr>
            <th>id</th>
            <th>title</th>
            <th>price</th>
            <th>retail_price</th>
            <th>public</th>
            <th>option</th>
        </tr>
        {% for book in all_book %}
        <tr>
            <td>{{ book.id }}</td>
            <td>{{ book.title }}</td>
            <td>{{ book.price }}</td>
            <td>{{ book.retail_price }}</td>
            <td>{{ book.pub.pubName }}</td>
            <td>
                <a href="/index/update_book/{{ book.id }}">更新</a>
                <a href="/index/delete_book/{{ book.id }}">删除</a>
            </td>
        </tr>
        {% endfor %}
    </table>

    <div>

    </div>
    <img src="{% static 'imgs/1.jpg' %}" alt="阅读我">

</body>
</html>